<template>
  <div class="container-item-tuijian" @click="routerLink(value)">
    <div class="container-background">
      <van-image class="item-cover" radius="3" :src="value.piccap" fit="cover" />
      <div class="item-title">{{ value.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  methods: {
    routerLink(params) {
      this.$router.push({ name: 'detailsArticle', params })
    }
  }
}
</script>

<style lang="less" scoped>
.container-item-tuijian {
  width: 50%;
  padding: 5px 10px;
  float: left;
  .container-background {
    border-radius: 3px;
    padding: 5px 8px;
    background-color: #f45050;
    .item-cover {
      width: 100%;
      height: 100%;
      height: 106px;
    }
    .item-title {
      font-size: 12px;
      color: #fff;
    }
  }
}
</style>
